From 30d0a032f7d15e1a8acf6fddc20df6fe298308d5 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Mon, 11 Nov 2013 03:39:45 +0000 Subject: [PATCH] Roll back swmwpp. I'm out of soul to fight with it further. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4652 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/stmwpp.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gpsbabel/stmwpp.cc b/gpsbabel/stmwpp.cc index e551c7aac..303a2cdbb 100644 --- a/gpsbabel/stmwpp.cc +++ b/gpsbabel/stmwpp.cc @@ -135,11 +135,7 @@ stmwpp_data_read(void) break; case 2: -#if NEW_STRINGS - wpt->shortname = QString::fromLatin1(c); -#else wpt->shortname = xstrdup(c); -#endif break; case 3: @@ -250,8 +246,8 @@ stmwpp_waypt_cb(const waypoint* wpt) snprintf(cdate, sizeof(cdate), "%02d/%02d/%04d", tm.tm_mon, tm.tm_mday, tm.tm_year); snprintf(ctime, sizeof(ctime), "%02d:%02d:%02d", tm.tm_hour, tm.tm_min, tm.tm_sec); - QString sn; switch (what) { + char* sn; case STM_WAYPT: case STM_RTEPT: @@ -260,7 +256,8 @@ stmwpp_waypt_cb(const waypoint* wpt) } else { sn = mkshort(short_h, wpt->shortname); } - gbfprintf(fout, "WP,D,%s,", CSTR(sn)); + gbfprintf(fout, "WP,D,%s,", sn); + xfree(sn); break; case STM_TRKPT: -- 2.30.2